<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>客户管理系统</title>
    <link rel="stylesheet" type="text/css" media="screen" href="css/base.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="css/head.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="css/addCustomer.css" />
</head>
<body>
<div class="mian-head">
    <div class="mian-head-mid">
        <p class="main-title">客户管理系统</p>
        <div class="mian-head-mid-r">
            <p class="main-hy" th:text="'欢迎：'+${session.myUser.name}+'管理员'"></p>
            <div class="mian-head-mid-r-slpi"></div>
            <p><a th:href="@{getUserMessage(name=${session.myUser.name})}">个人信息</a></p>
            <div class="mian-head-mid-r-slpi"></div>
            <p><a href="logout">退出</a></p>
        </div>
    </div>
</div>
<div class="list-mid">
    <!-- 标题 -->
    <div class="list-title">
        <div class="list-title-div"></div>
        <p>个人信息</p>
    </div>

    <!-- 表单 -->
<!--    <form th:action="@{updateCustomer}" method="post">-->
        <table class="addform-table">
            <tr>
                <td class="addform-1">账户名：</td>
                <td class="addform-2" th:text="${user.name}"></td>
            </tr>
            <tr>
                <td class="addform-1">编号：</td>
                <td class="addform-2" ><p th:text="${user.id}"></p>
                </td>
            </tr>
            <tr>
                <td class="addform-1">联系电话：</td>
                <td class="addform-2" ><p th:text="${user.phone}"></p>
                </td>
            </tr>
            <tr>
                <td class="addform-1">邮箱：</td>
                <td class="addform-2" ><p th:text="${user.email}"></p>
                </td>
            </tr>
            <tr>
                <td class="addform-1">负责客户名称：</td>
                <td class="addform-2" ><span th:text="${customer.name}+','" th:each="customer : ${user.customers}"></span>
                    <span th:if="${user.customers == null}">暂无</span>
                </td>
            </tr>

        </table>

<!--    </form>-->
    <div class="usermessagebtndiv">
        <a class="toupdateMessagebtn" th:href="@{updateUserMes(name=${session.myUser.name})}">修改</a>
        <a class="returnbtm" href="GetCustomerList">返回</a>
    </div>
</div>
</body>
</html>